/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jung2;

import java.util.ArrayList;
import java.util.LinkedList;

/**
 *
 * @author ravi
 */
public class CollectionsTest {

    public static void main(String args[]) {
        LinkedList<String> linkedList = new LinkedList();
        ArrayList<String> arrayList = new ArrayList();
        arrayList.add("A");
        arrayList.add("C");
        arrayList.add("B");
        System.out.println(arrayList.get(0));
        System.out.println(arrayList.get(1));
        System.out.println(arrayList.get(2));
        linkedList.add("A");
        linkedList.add("C");
        linkedList.add("B");
        System.out.println(linkedList.get(0));
        System.out.println(linkedList.get(1));
        System.out.println(linkedList.get(2));
    }
}
